﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MyShenHe.aspx.cs" Inherits="office_MyShenHe" %>

<%@ Register Src="../UserControls/Calendar.ascx" TagName="Calendar" TagPrefix="uc1" %>
<%@ Register Src="../UserControls/GeneralSelect.ascx" TagName="GeneralSelect" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>我已批核的件(受理大厅-审查中心)</title>
    <link href="../css/page.css" rel="stylesheet" type="text/css" />
    <script src="../ScriptFile/jquery.js" type="text/javascript"></script>
    <script src="../ScriptFile/JqueryPostService.js" type="text/javascript"></script>
</head>
<script type="text/javascript">
    function ViewInstanceFrame(Instance, flag)//查询案件信息
    {
        var strURL = "../QueryAndCollect/TaskProcessView.aspx?IID=" + Instance + "&flag=" + flag;

        window.open(strURL, 'viewer', "height=" + (screen.availHeight - 30) + " , width=" + screen.availWidth + ", top=0, left=0,toolbar=no, menubar=no, scrollbars=no, location=n o, status=no");
    }

    function ReturnMsg(vReturn) {
        alert("设置成功");
    }

    //设置变更原因
    function SetUpdateNotes(strIID) {
        var strURL = "TaskUpdateNotes.aspx?iid=" + strIID;
        window.open(strURL, 'viewer', "height=300, width=500, top=0, left=0,toolbar=no, menubar=no, scrollbars=no, location=n o, status=no");
    }

    //设置操作异常标志位
    function SetSubmitFlag(striid, strflag) {
        var strMsg = '您确定允许通过吗？';

        if (strflag == "is_bg") {
            strMsg = '您确定允许变更吗？';
        }
        else if (strflag == "is_yq") {
            strMsg = '您确定允许延期吗？';
        }
        else if (strflag == "is_cx") {
            strMsg = '您确定允许撤销吗？';
        }

        var nReturn = confirm(strMsg);
        if (nReturn) {
            var strUrl = '../WebService/JqueryService.asmx/SetSubmitFlag';
            WebService(strUrl, ReturnMsg, '{"strIID":"' + striid + '","strField":"' + strflag + '"}');
        }
    }

    //设置记录标志
    function recordFlag(striid, strflag, nShowConfirm) {
        var strURL = "";
        if (nShowConfirm == 0) {
            var strMsg = '您确定记录为退改吗？';

            if (strflag == "is_tg") {
                strMsg = '您确定记录为退改吗？';
            }
            else if (strflag == "is_gd") {
                strMsg = '您确定归档吗？';
            }

            var nReturn = confirm(strMsg);

            if (nReturn) {
                strURL = "TaskUntreadOrBak.aspx?action=" + strflag + "&iid=" + striid;
                window.open(strURL, 'viewer', "height=300, width=500, top=0, left=0,toolbar=no, menubar=no, scrollbars=no, location=no, status=no");
            }
        }
        else {
            strURL = "TaskUntreadOrBak.aspx?action=" + strflag + "&iid=" + striid;
            window.open(strURL, 'viewer', "height=300, width=500, top=0, left=0,toolbar=no, menubar=no, scrollbars=no, location=no, status=no");
        }

    }
</script>
<body>
    <form id="form1" runat="server">
        <div style="width: 99%; margin: 0px auto; text-align: center;">
            <table style="width: 100%; border-top-width: 0px" class="tab">
                <tr>
                    <td style="text-align: left;">受理编号：
                    </td>
                    <td style="text-align: left;">
                        <asp:TextBox ID="txtIID" runat="server" Width="100"></asp:TextBox>
                    </td>
                    <td>办件类型：
                    </td>
                    <td style="text-align: left;">
                        <asp:DropDownList ID="ddlFlow" runat="server">
                        </asp:DropDownList>
                    </td>
                    <td>送审单位：
                    </td>
                    <td style="text-align: left;">
                        <asp:TextBox ID="txtName" runat="server" Width="120"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: left;">图名：
                    </td>
                    <td style="text-align: left;">
                        <asp:TextBox ID="txtTm" runat="server"></asp:TextBox>
                    </td>
                    <td>受理时间：
                    </td>
                    <td style="text-align: left;">自
                    <uc1:Calendar ID="slstartDate" Width="80" runat="server" />
                        到:
                    <uc1:Calendar ID="slendDate" Width="80" runat="server" />
                    </td>
                    <td>岗位接件时间：
                    </td>
                    <td style="text-align: left;">自
                    <uc1:Calendar ID="jjstartDate" Width="80" runat="server" />
                        到:
                    <uc1:Calendar ID="jjendDate" Width="80" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td style="text-align: left;">图件用途：
                    </td>
                    <td style="text-align: left;" colspan="3">
                        <uc2:GeneralSelect ID="ddlTjlb" ValidateEmpty="false" FirstEmpty="true" Name="图件类别"
                            runat="server" />
                    </td>
                    <td>审查人：
                    </td>
                    <td colspan="3" style="text-align: left;">
                        <asp:TextBox runat="server" ID="txtShr" Width="100"></asp:TextBox>
                        <asp:CheckBox ID="cbxCss" Text="曾送审" runat="server"></asp:CheckBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="8">
                        <asp:Button ID="btnRefer" CssClass="input" runat="server" Text="查询" OnClick="btnRefer_Click" />
                    </td>
                </tr>
            </table>
            <controlDefine:CustomGridView ID="gvMessage" runat="server" AllowPaging="true" Width="1400"
                SkinID="NewGrid" HideTextLength="18" AutoGenerateColumns="false" ShowCmpAndCancel="false" ShowImportButton="true"
                CustomImportToExcel="true" OnOnImportClick="gvMessage_OnImportClick" AllowOnMouseOverEvent="False"
                ShowItemNumber="True" AutoGenerateDeleteConfirm="True" OnRowCreated="gvMessage_RowCreated"
                ShowHideColModel="Menu" OnOnLoadData="gvMessage_OnLoadData">
                <PagerSettings Visible="true" />
                <Columns>
                    <asp:TemplateField HeaderText="办件编号" ItemStyle-Width="115">
                        <ItemTemplate>
                            <a href='#' onclick='ViewInstanceFrame("<%#Eval("iid") %>","<%=Request["flag"]%>")'>
                                <%# Eval("iid") %></a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="办件类型" DataField="wname" />
                    <asp:BoundField HeaderText="图名" DataField="tm" />
                    <asp:BoundField HeaderText="图件用途" DataField="dtyt" />
                    <asp:BoundField HeaderText="图幅数" DataField="图幅数量" />
                    <asp:BoundField HeaderText="受理编号" DataField="slh" />
                    <asp:BoundField HeaderText="送审单位" DataField="name" />
                    <asp:BoundField HeaderText="当前岗位" DataField="step" />
                    <asp:BoundField DataField="审查应完成日期" HeaderText="审查应完成日期" DataFormatString="{0:yyyy-MM-dd}" />
                    <asp:BoundField DataField="受理日期" HeaderText="受理日期" DataFormatString="{0:yyyy-MM-dd}" />
                    <asp:BoundField HeaderText="岗位接件时间" DataField="accepted_time" HtmlEncodeFormatString="true"
                        DataFormatString="{0:yyyy-MM-dd}" />
                    <asp:TemplateField HeaderText="修改">
                        <ItemTemplate>
                            <asp:HyperLink ID="hlRequestUpdate" runat="server">申请</asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="退改" Visible="false">
                        <ItemTemplate>
                            <asp:HyperLink ID="hlTg" runat="server">记录</asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="归档" Visible="false">
                        <ItemTemplate>
                            <asp:HyperLink ID="hlGd" runat="server">记录</asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </controlDefine:CustomGridView>
        </div>
    </form>
</body>
</html>
